const Card=function({
    card,
    lang,
    size,
    color
}) {
    this.card=card;
    this.lang=lang;
    this.size=size;
    this.color=color;
}

Card.prototype={
    draw(canvasid) {
        const ctx=wx.createCanvasContext(canvasid, this);
        console.log(ctx)
        var type_src = wx.getStorageSync('nmonster');
        console.log(type_src)
        ctx.drawImage(type_src, 0, 0, 150, 100)
        ctx.draw()
    }
}

module.exports.Card=Card;